﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentData;

namespace Eleanor.DAL
{
    public class DALBase
    {
        public string ConnectionStringName { get; set; }

        protected internal IDbContext DefaultContext
        {
            get
            {
                IDbContext context = new DbContext().ConnectionStringName(ConnectionStringName ?? @"default", new SqlServerProvider());
                context.IsolationLevel(IsolationLevel.ReadCommitted);
                return context;
            }
        }
    }
}
